﻿@model blacksoft.Models.LoginModel
@{
    ViewBag.Title = "index";
    Layout = "~/Views/Shared/_LayoutLogin.cshtml";
}
@if (TempData["LogueatePrimero"] != null)
{
    <div class="error grid_12">
        <h3>Error en Index: @TempData["LogueatePrimero"]</h3>
        <a class="hide_btn" href="#"></a>
    </div>
}
@if (TempData["alertMessage"] != null)
{
    <div class="error grid_12">
        <h3>Error en Modificar: @TempData["alertMessage"].</h3>
        <a class="hide_btn" href="#"></a>
    </div>
}

@if (TempData["estasGGeado"] != null)
{
    <div class="error grid_12">
        <h3>Error: @TempData["estasGGeado"].</h3>
        <a class="hide_btn" href="#"></a>
    </div>
}


@if (null != TempData["ESTOYLOGUEADO"])
{
    <script type="text/javascript">
        window.location.href = '@Url.Action("Index", "MainPageEmployes")';
    </script>
}
@if (null != TempData["CARAJO"])
{
    <script type="text/javascript">
        window.location.href = '@Url.Action("Index", "MainPageEmployes")';
    </script>
}

@*<h2>Ingresar al Intranet</h2>

    @Html.AntiForgeryToken()
    @using (Html.BeginForm())
    {
        <div class="form-horizontal">
            <h4>Identifiquese</h4>
            <hr />
            @Html.ValidationSummary(true)
            <div class="form-group">
                @Html.LabelFor(model => model.Nombre, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Nombre)
                    @Html.ValidationMessageFor(model => model.Nombre)
                </div>
            </div>
            .
            <div class="form-group">
                @Html.LabelFor(model => model.Contraseña, new { @class = "control-label col-md-2" })
                <div class="col-md-10">
                    @Html.EditorFor(model => model.Contraseña)
                    @Html.ValidationMessageFor(model => model.Contraseña)
                </div>
            </div>

            <div class="form-group">
                <div class="col-md-offset-2 col-md-10">
                    <input type="submit" value="Ingresar" class="btn btn-default" />
                </div>
            </div>
        </div>
}*@

<div id="loginbox">
    <a href="#" id="logo">AdminCP</a>
    <div id="loginform">
        <form name="login" action="ValidarLogin" method="post">
            <div id="username_field">
                <input type="text" name="Nombre" placeholder="Username" class="required" value="" />
            </div>
            <div id="password_field">
                <input type="password" name="Contraseña" placeholder="Password" class="required" value="" />
            </div>
            <div id="buttonline">
                <input type="submit" id="loginbutton" class="float_left width_4" value="Login" />
                @*<a href="#" class="passforgot float_right">Forgot your password?</a>*@
            </div>
        </form>
    </div>
</div>
